<?php


namespace api\web\model;


use think\Model;

class NavModel extends Model
{
    protected $name = 'nav1';
    public function nav()
    {
        //关联模型
        return $this->hasMany(NavModel::class,'pid','id');
    }

}